package com.dy.design_pattern_study.flyweight_pattern.dome1;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-23
 * @Content
 */
public class client {
    public static void main(String[] args) {
        /*
            如果代码不共享，则需要创建多个空间来使用不同的代码
         */

        WebSite fx = new WebSite("产品展示");
        fx.use();

        WebSite fy = new WebSite("产品展示");
        fy.use();

        WebSite fz = new WebSite("产品展示");
        fz.use();

        WebSite fl = new WebSite("博客");
        fl.use();

        WebSite fm = new WebSite("博客");
        fm.use();

        WebSite fn = new WebSite("博客");
        fn.use();
    }

}